$f: 19.2;

.home {
  position: relative;
  width: 100%;
  .title_50 {
    font-size: 50/$f+vw;
    font-weight: bold;
  }
  .section1 {
    margin: 198/$f+vw 210/$f+vw 98/$f+vw 210/$f+vw;
    display: flex;
    justify-content: space-between;

    .l {
      width: 935/$f+vw;

      a {
        display: block;
        position: relative;
        border-radius: 3px;
        overflow: hidden;

        &::before {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          border-radius: 3px;
          background: rgba(0, 0, 0, .3);
          transition: all 600ms;
          z-index: 1;
        }

        img {
          width: 100%;
          height: 620/$f+vw;
          display: block;
          object-fit: cover;
          transition: all 600ms;
        }

        .text {
          position: absolute;
          left: 32/$f+vw;
          bottom: 32/$f+vw;
          z-index: 1;
          color: white;

          .p1 {
            font-size: 26/$f+vw;
          }

          .time {
            font-size: 16/$f+vw;
            margin-top: 11/$f+vw;
          }
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }
    }

    .r {
      width: 530/$f+vw;

      a {
        display: block;
        position: relative;
        border-radius: 3px;
        overflow: hidden;

        &:not(:last-child) {
          margin-bottom: 20/$f+vw;
        }

        &::before {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          border-radius: 3px;
          background: rgba(0, 0, 0, .3);
          z-index: 1;
        }

        img {
          width: 100%;
          height: 300/$f+vw;
          display: block;
          object-fit: cover;
          transition: all 600ms;
        }

        .text {
          position: absolute;
          left: 32/$f+vw;
          bottom: 32/$f+vw;
          z-index: 1;
          color: white;

          .p1 {
            font-size: 26/$f+vw;
          }

          .time {
            font-size: 16/$f+vw;
            margin-top: 11/$f+vw;
          }
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }
    }
  }

  .section2 {
    margin: 0 210/$f+vw;

    .top_box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      z-index: 100;
      .p1 {
        font-size: 16/$f+vw;
      }

      .r {
        display: flex;
        align-items: center;

        .p2 {
          font-size: 16/$f+vw;
          margin-right: 52/$f+vw;
        }

        .types {
          position: relative;
          cursor: pointer;
          .d1 {
            display: flex;
            align-items: center;

            p {
              font-size: 16/$f+vw;
            }

            svg {
              width: 23/$f+vw;
              display: block;
              margin-left: 11/$f+vw;
            }
          }

          .d2 {
            position: absolute;
            left: 0;
            top: 100%;
            width: 100/$f+vw;
            background: white;
            z-index: 10;
            box-shadow: 0 0 10px rgba(0, 0, 0, .3);
            display: none;

            p {
              padding: 8/$f+vw;
              cursor: pointer;
              transition: all 600ms;
              font-size: 14/$f+vw;

              &:hover {
                background: #00B58A;
                color: white;
              }
            }
          }
          &:hover{
            .d2{
              display: block;
            }
          }
        }
      }
    }

    .list {
      a {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #D3D3D3;
        padding: 44/$f+vw 0;

        .l {
          width: 785/$f+vw;
          display: flex;
          align-items: center;

          .time {
            color: #000;
            font-size: 26/$f+vw;
          }

          .pic {
            margin-left: 42/$f+vw;
            overflow: hidden;

            img {
              width: 530/$f+vw;
              height: 300/$f+vw;
              border-radius: 3px;
              transition: all 600ms;
            }
          }
        }

        .r {
          width: 740/$f+vw;

          .p1 {
            color: #000;
            font-size: 26/$f+vw;
            margin: 57/$f+vw 0 27/$f+vw 0;
          }

          .des {
            color: #666;
            font-size: 16/$f+vw;
            line-height: 1.625;
          }
        }

        &:hover {
          .l {
            .pic {
              img {
                transform: scale(1.05);
              }
            }
          }
        }
      }
    }

    .pager {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 100/$f+vw;

      .prev,
      .next {
        svg {
          width: 23/$f+vw;
          display: block;
        }
      }

      .nums {
        display: flex;
        align-items: center;
        margin: 0 15/$f+vw;
        a {
          color: #000;
          font-size: 16/$f+vw;
          width: 28/$f+vw;
          height: 28/$f+vw;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 8/$f+vw;
        }
        .on{
          background: #00B58A;
          color:white;
        }
      }
    }
  }

  .section3 {
    margin: 118/$f+vw 210/$f+vw 133/$f+vw 210/$f+vw;
    display: flex;
    justify-content: space-between;

    .item {
      width: 49%;
      padding: 52/$f+vw 48/$f+vw;
      color: white;
      border-radius: 15/$f+vw;

      .p1 {
        font-weight: 700;
      }

      .p2 {
        font-size: 26/$f+vw;
        margin-top: 10/$f+vw;
      }

      a {
        display: flex;
        justify-content: center;
        align-items: center;

        span {
          width: 28/$f+vw;
          height: 28/$f+vw;
          background-color: #00B58A;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;

          svg {
            width: 15/$f+vw;

            path {
              transition: all 600ms;
            }
          }
        }

        p {
          color: #FFF;
          font-size: 14/$f+vw;
          margin-left: 14/$f+vw;
        }
      }

      .pic {
        img {
          transition: all 600ms;
        }
      }

      &:hover {
        .pic {
          img {
            transform: scale(1.05);
          }
        }
      }
    }

    .item:nth-child(1) {
      background: #2E2E2E url('../images/line.png') no-repeat;

      .pic {
        margin: 112/$f+vw 0 49/$f+vw 85/$f+vw;
        img {
          max-width: 100%;
          height: 310/$f+vw;
          object-fit: contain;
        }
      }
    }

    .item:nth-child(2) {
      background: #00B58A;

      .pic {
        margin: 105/$f+vw 0 49/$f+vw 156/$f+vw;

        img {
          max-width: 100%;
          object-fit: contain;
        }
      }

      a {
        span {
          background: white;

          svg {
            path {
              fill: #00B58A;
            }
          }
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      margin: 20px 5%;
      flex-direction: column;
      .l{
        width: 100%;
        a{
          img{
            height: auto;
          }
          .text{
            left: 20px;
            bottom:20px;
            .p1{
              font-size: 18px;
            }
            .time{
              font-size: 16px;
              margin-top: 10px;
            }
          }
        }
      }
      .r{
        width: 100%;
        margin-top: 10px;
        a{
           &:not(:last-child){
            margin-bottom: 10px;
           }
          img{
            height: auto;
          }
          .text{
            left: 20px;
            bottom:20px;
            .p1{
              font-size: 18px;
            }
            .time{
              font-size: 16px;
              margin-top: 10px;
            }
          }
        }
      }
    }
    .section2{
      margin: 0 5%;
      .top_box{
        .p1{
          font-size: 16px;
        }
        .r{
          .p2{
            font-size: 16px;
            margin-right: 20px;
          }
          .types{
            .d1{
              p{
                font-size: 16px;
              }
              svg{
                width: 20px;
              }
            }
            .d2{
              width: 100%;
              p{
                font-size: 16px;
              }
            }
          }
        }
      }
      .list{
        a{
          flex-direction: column;
          padding: 30px 0;
          .l{
            width: 100%;
            flex-direction: column;
            align-items: flex-start;
            .time{
              font-size: 18px;
            }
            .pic{
              margin: 20px 0 0 0;
              img{
                width: 100%;
              height: auto;
              }
            }
          }
          .r{
            width: 100%;
            .p1{
              font-size: 18px;
              margin:15px 0 5px 0;
            }
            .des{
              font-size: 16px;
            }
          }
        }
      }
      .pager{
        .prev,.next{
          svg{
            width: 20px;
          }
        }
        .nums{
           margin: 0 10px;
           a{
            width: 25px;
            height: 25px;
            font-size: 14px;
           }
        }
      }
    }
    .section3{
      margin: 40px 5%;
      flex-direction: column;
      .item{
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 10px;
        .p1{
          font-size:24px ;
        }
        .p2{
          font-size: 14px;
          margin-top: 10px;
        }
        a{
          span{
            width: 25px;
            height: 25px;
            svg{
              width: 20px;
            }
          }
          p{
            font-size: 16px;
            margin-left: 10px;
          }
        }
      }
      .item:nth-child(1){
        .pic{
          img{
            height: auto;
          }
        }
      }
    }
  }
}